// TypeScript file
class winHave extends egret.Sprite {

    public constructor() {
        super();
        this.once(egret.Event.ADDED_TO_STAGE, this.createView, this);
    }

    private createView() {
        this.addChild(createBitmap("bgsec_png"));

        var winHave = div(0, 0, 750, 0, 750, 1206, 0, 1206, 0, 1206, 0, 0);           //添加容器
        this.addChild(winHave);

        var winHaveBottom = createBitmap("win_noneBottom_png", 0, 775);
        winHave.addChild(winHaveBottom);

        var winHaveBgMsg = createBitmap("win_haveBgMsg_png", 15, 200);
        winHave.addChild(winHaveBgMsg);

        var winHaveBtnpink = createBitmap("win_noneBtnpink_png", 285, 870);
        winHave.addChild(winHaveBtnpink);

        var winHaveMoney = createTextFiled("123456元已飞入您的微信钱包，请注意查收哟！  ", 200, 430, 36, 0x54734a, "center", 345, 157)
        winHaveMoney.bold = true;
        winHaveMoney.lineSpacing = 20;
        winHave.addChild(winHaveMoney);

        var winHaveContinue = createTextFiled("继续游戏", 310, 880, 25, 0xffffff, "center", 154, 50)
        winHaveContinue.bold = true;
        winHaveContinue.lineSpacing = 15;
        winHaveContinue.touchEnabled = true;

        winHaveContinue.addEventListener(egret.TouchEvent.TOUCH_TAP,function(){
            SenceManage.create(this.stage).loadSence("GameUI", null,GameUI);//跳转场景游戏 [JT02271405]
        },this)
       
        winHave.addChild(winHaveContinue);

        var winHavePs = createTextFiled("Ps:", 130, 750, 23, 0xffffff)
        winHavePs.bold = true;
        winHavePs.lineSpacing = 15;
        winHave.addChild(winHavePs);

        var winHaveLq = createTextFiled("已有998人领取了现金豪礼!", 130, 780, 23, 0xffffff)
        winHaveLq.bold = true;
        winHaveLq.lineSpacing = 10;
        winHave.addChild(winHaveLq);
    }
}
